Version

CreatePropertyChange<TOwner,TProperty>(TOwner,String,TProperty,TProperty,String,String) Method

Creates an PropertyChangeUndoUnitBase for the specified property change.
Syntax
'Declaration
 
Public Overloads Overridable Function CreatePropertyChange
    (Of TOwner As Class,
     TProperty)( _
   ByVal owner As TOwner, _
   ByVal propertyName As String, _
   ByVal oldValue As TProperty, _
   ByVal newValue As TProperty, _
   Optional ByVal propertyDisplayName As String, _
   Optional ByVal typeDisplayName As String _
) As PropertyChangeUndoUnitBase
public virtual PropertyChangeUndoUnitBase CreatePropertyChange<TOwner,TProperty>( 
   TOwner owner,
   string propertyName,
   TProperty oldValue,
   TProperty newValue,
   string propertyDisplayName,
   string typeDisplayName
)
where TOwner: class

Parameters

owner
The instance whose property was changed
propertyName
The string name of the public property that was changed. This is used to find the PropertyInfo for the property to be affected when the operation is undone.
oldValue
The old value of the property that should be restored when the action is undone.
newValue
The new value of the property
propertyDisplayName
The preferred name of the property as it should be displayed to the end user. If this is not specified the actual name of the property will be used.
typeDisplayName
The preferred name of the object whose property is being changed as it should be displayed to the end user.

Type Parameters

TOwner
The type of class whose value was changed
TProperty
The type of the property that was changed

Return Value

Returns an undo unit that can be used to undo the specified property change.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also